package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Basic_billRule", description = "单据规则表")
@TableName(value = "Basic_billRule")
public class BasicBillrule extends FBaseEntity implements Serializable {

    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("单据名称")
    @Length(max= 255,message="编码长度不能超过255")
    @TableField(value = "name")
    private String name;
    
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("单据编码")
    @Length(max= 255,message="编码长度不能超过255")
    @TableField(value = "code")
    private String code;
    
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("单据前缀")
    @Length(max= 255,message="编码长度不能超过255")
    @TableField(value = "prefix")
    private String prefix;
    
    //@Size(max= 50,message="编码长度不能超过50")
    //@ApiModelProperty("日期格式")
    //@Length(max= 50,message="编码长度不能超过50")
    //@TableField(value = "dateFormat")
    //private String dateFormat;
    //
    //@ApiModelProperty("流水位数")
    //@TableField(value = "digit")
    //private Long digit;
    
    @ApiModelProperty("当前流水号")
    @TableField(value = "thisNumber")
    private Long thisNumber;
    
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("输出流水号")
    @Length(max= 255,message="编码长度不能超过255")
    @TableField(value = "outPutNumber")
    private String outPutNumber;

    @ApiModelProperty("订单类型ID")
    @TableField(value = "billTypeId")
    private Long billTypeId;






}

